layui.config({
    base: CXL.ctxPath + '/layuiadmin/' //静态资源所在路径
}).extend({
    index: 'lib/index' //主入口模块
}).use(['index', 'table', 'laydate', 'form', 'layer', 'element'], function () {
    var $ = layui.jquery
        ,element = layui.element; //Tab的切换功能，切换事件监听等，需要依赖element模块

    // var GET_TASK_INFO_PREFIX = "getTaskInfoCrane";
    var craneId =  $(craneid).val();
    console.log(craneId);
    connect(craneId);
    setTimeout(subscribelogo,1000);
    setInterval(function (){
        sendMessageForGetTastInfo(craneId);
        element.render();
    },1000);


    function subscribelogo(){
        subscribeSocket();
    }
});
